//
//  UserTableViewCell.m
//  项目
//
//  Created by 张诗雨 on 15/1/6.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "UserTableViewCell.h"
#import "WebColor.h"
@implementation UserTableViewCell

- (void)dealloc
{
    [super dealloc];
    [_imgView release];
    [_lable release];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
//        self.imgView.image = [UIImage imageNamed:@"user_right.png"];
        [self.contentView addSubview:self.imgView];
        [_imgView release];
        
        self.lable = [[UILabel alloc] init];
        self.lable.font = [UIFont boldSystemFontOfSize:17.0f];
        self.lable.textColor = [WebColor slateGray];
        [self.contentView addSubview:self.lable];
        [_lable release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(10, 10, self.frame.size.height - 20, self.frame.size.height - 20);
    self.lable.frame = CGRectMake(self.frame.size.height, 10, self.frame.size.width - (self.frame.size.height * 2), self.frame.size.height - 20);
}
@end
